public abstract class PatternMatchUtils
extends java.lang.Object
Constructor and Description |
---|
PatternMatchUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
simpleMatch(java.lang.String[] patterns,
java.lang.String str)
Match a String against the given patterns, supporting the following simple
pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy" matches (with an
arbitrary number of pattern parts), as well as direct equality.
|
static boolean |
simpleMatch(java.lang.String pattern,
java.lang.String str)
Match a String against the given pattern, supporting the following simple
pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy" matches (with an
arbitrary number of pattern parts), as well as direct equality.
|
public static boolean simpleMatch(@Nullable java.lang.String pattern, @Nullable java.lang.String str)
pattern
- the pattern to match againststr
- the String to matchpublic static boolean simpleMatch(@Nullable java.lang.String[] patterns, java.lang.String str)
patterns
- the patterns to match againststr
- the String to match